import re

r = re.match("^1[35789]\d{9}$", "19600000000")

# print(r)

if r:
    print("true")
else:
    print("false")

# cookie  session
import base64
import json

header = {
    "alg": "HS256",
    "typ": "JWT"
}
header = json.dumps(header, ensure_ascii=False)
x = base64.b64encode(bytes(header, "utf-8"))
print(x)